import React from 'react';
import './App.css';
// import DraftApp from './pages/draft-app';
import 'antd/dist/antd.css';
import { useRoutes } from 'react-router-dom';
import routes from './routes';



function App() {
	const element = useRoutes(routes);
	return (
		<div className='App'>
			<React.Suspense fallback={<h2>Loading...</h2>}>{element}</React.Suspense>
		</div>
	);
}

export default App;
